Alias /git /var/www/localhost/cgi-bin

<Directory /var/www/localhost/cgi-bin>
  Options +ExecCGI
  AddHandler cgi-script .cgi
  DirectoryIndex gitweb.cgi
</Directory>

